<!-- inc:header -->
<div class="notice"><div class="p">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td><span class="lead">&nbsp;&raquo; <a href="{:site_url('lang')}">语言包管理</a> &raquo; 添加/编辑信息</span></td>
	</tr>
	</table>
</div></div>

<form method="post" action="{:site_url('lang,setok')}id={:$id}" onsubmit="return to_submit();">

<div class="table">
	<div class="left"><span class="red">*</span> 名称：</div>
	<input type="text" name="title" id="title" class="long_input" value="{:$rs[title]}">
</div>

<!-- if($rs[ifsystem]) -->
<div class="table">
	<div class="left"><span class="red">*</span> 语言包ID：</div>
	<input type="text" value="{:$rs[langid]}" disabled="disabled">
	<span class="clue_on"> 核心模板目录不允许修改</span>
</div>
<!-- else -->
<div class="table">
	<div class="left"><span class="red">*</span> 语言包ID：</div>
	<input type="text" name="langid" id="langid" value="{:$rs[langid]}" class="short_input">
	<span class="clue_on"> 如zh,cn,en等，最多不超过5个字符，仅限字母</span>
</div>
<!-- end -->

<div class="table">
	<div class="left">备注：</div>
	<input type="text" name="note" id="note" value="{:$rs[note]}" class="long_input">
	<span class="clue_on"> 一些简单的说明</span>
</div>


<div class="table">
	<div class="left">排序：</div>
	<input type="text" name="taxis" id="taxis" value="{:$rs[taxis] ? $rs[taxis] : '255'}" class="short_input">
	<span class="clue_on"> 范围0-255，值越小越往前靠</span>
</div>

<div class="table">
	<div class="left">语言图片：</div>
	<table>
	<tr>
		<td class="clue_on" style="line-height:150%;">建议图标：20*20，小图：60*60，中图：120*120，大图：240*240，仅供参考<br />图片在前台的使用范图由您自行控制。具体可根据客户需要来处理</td>
	</tr>
	</table>
</div>

<div class="table">
	<div class="left">图标：</div>
	<input type="text" name="ico" id="ico" value="{:$rs[ico]}" class="long_input clue_on" readonly>
	<input type="button" class="btn2" value="选择" onclick="phpjs_onepic('ico')">
	<input type="button" class="btn2" value="预览" onclick="phpjs_onepic_view('ico')">
	<input type="button" class="btn2" value="清空" onclick="phpjs_onepic_clear('ico')">
</div>

<div class="table">
	<div class="left">小图：</div>
	<input type="text" name="small_pic" id="small_pic" value="{:$rs[small_pic]}" class="long_input clue_on" readonly>
	<input type="button" class="btn2" value="选择" onclick="phpjs_onepic('small_pic')">
	<input type="button" class="btn2" value="预览" onclick="phpjs_onepic_view('small_pic')">
	<input type="button" class="btn2" value="清空" onclick="phpjs_onepic_clear('small_pic')">
</div>

<div class="table">
	<div class="left">中图：</div>
	<input type="text" name="medium_pic" id="medium_pic" value="{:$rs[medium_pic]}" class="long_input clue_on" readonly>
	<input type="button" class="btn2" value="选择" onclick="phpjs_onepic('medium_pic')">
	<input type="button" class="btn2" value="预览" onclick="phpjs_onepic_view('medium_pic')">
	<input type="button" class="btn2" value="清空" onclick="phpjs_onepic_clear('medium_pic')">
</div>

<div class="table">
	<div class="left">大图：</div>
	<input type="text" name="big_pic" id="big_pic" value="{:$rs[big_pic]}" class="long_input clue_on" readonly>
	<input type="button" class="btn2" value="选择" onclick="phpjs_onepic('big_pic')">
	<input type="button" class="btn2" value="预览" onclick="phpjs_onepic_view('big_pic')">
	<input type="button" class="btn2" value="清空" onclick="phpjs_onepic_clear('big_pic')">
</div>

<div class="table">
	<div class="left">&nbsp;</div>
	<input type="submit" class="btn3" id="_phpok_submit" name="article_submit" value=" 提交 ">
</div>

</form>

<script type="text/javascript">
function to_submit()
{
	var title = getid("title").value;
	if(!title)
	{
		alert("名称不允许为空");
		getid("title").focus();
		return false;
	}
	<!-- if(!$id) -->
	var langid = getid("langid").value;
	if(!langid)
	{
		alert("语言包ID不允许为空");
		getid("langid").focus();
		return false;
	}
	var url = "{:site_url('lang,ajax_chk')}id="+EncodeUtf8(langid);
	var msg = get_ajax(url);
	if(msg != "ok")
	{
		if(!msg) msg = "error: 操作有错误";
		alert(msg);
		return false;
	}
	<!-- end -->
	getid("_phpok_submit").disabled = true;
}
</script>
<!-- inc:footer -->